package com.yidian.server.goods;

import com.yidian.entity.PageResult;
import com.yidian.pojo.goods.Brand;

import java.util.List;
import java.util.Map;

/**
 * @author whb
 * @create 2021-05-06 17:42
 * @description 商品品牌Service接口
 */
public interface BrandService {
    public List<Brand> findAll();

    public PageResult<Brand> findPage(int page, int size);

    public List<Brand> findCondition(Map<String, Object> searchMap);

    public PageResult<Brand> findConditionAndPage(Map<String, Object> searchMap, int page, int size);

    public Brand findById(Integer id);

    public void add(Brand brand);

    public void update(Brand brand);

    public void delete(Integer id);
}
